package com.example.zyh.service.Impl;


import com.example.zyh.mapper.LdMapper;
import com.example.zyh.pojo.Loudong;
import com.example.zyh.service.LdService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LdServiceImpl implements LdService {

    @Resource
    private LdMapper ldMapper;

    @Override
    public List<Loudong> select() {
        return ldMapper.select();
    }

    @Override
    public void addLd(Loudong loudong) {
       ldMapper.addLd(loudong);
    }

    @Override
    public void delete(int id) {
       ldMapper.delete(id);
    }

    @Override
    public void update(Loudong loudong) {
        ldMapper.update(loudong);
    }

    @Override
    public List<Loudong> selectlike(Loudong loudong) {
        return ldMapper.selectlike(loudong);
    }
}
